Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Migration review - DO NOT MERGE] Supplier + proof modules #385

Closed
wants to merge 23 commits into from

Conversation

bryanchriswhite
Copy link
Contributor

@bryanchriswhite bryanchriswhite commented Feb 14, 2024

Summary

Human Summary

Review branch for the supplier module migration to rollkit/cosmos-sdk v0.50.x (see: migration notion doc).

Once this branch is approved:

  • Double-check that the corresponding merge branch is up to date: git diff origin/migration/supplier-module..origin/migration/review/supplier-module
  • Merge [Migration] Supplier module #373
  • Merge TODO: proof module

NOTE:

  • ~11.5K additions are attributable to newly generated *.pulsar.go code.
  • Due to the review strategy particulars, some chain-level code which is common to all module migration branches is also included; review emphasis should be on module-specific changes (e.g. proto/supplier/..., x/supplier/...) and dependencies.

Issue

Type of change

Select one or more:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify): Module migration to rollkit/cosmos-sdk v0.50.x

Testing

  • Run all unit tests: make go_develop_and_test
  • Run E2E tests locally: make test_e2e
  • Run E2E tests on DevNet: Add the devnet-test-e2e label to the PR. This is VERY expensive, only do it after all the reviews are complete.

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have performed a self-review of my own code
  • I have commented my code, updated documentation and left TODOs throughout the codebase

@bryanchriswhite bryanchriswhite added supplier Changes related to the Supplier actor code health Cleans up some code labels Feb 14, 2024
@bryanchriswhite bryanchriswhite self-assigned this Feb 14, 2024
}
return nil
}
// TODO_IN_THIS_COMMIT: uncomment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[linter-name (fail-on-found)] reported by reviewdog 🐶
// TODO_IN_THIS_COMMIT: uncomment


servicehelpers "github.com/pokt-network/poktroll/x/shared/helpers"
sharedtypes "github.com/pokt-network/poktroll/x/shared/types"
)

const TypeMsgStakeSupplier = "stake_supplier"

var _ sdk.Msg = (*MsgStakeSupplier)(nil)
var _ sdk.Msg = &MsgStakeSupplier{}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[linter-name (fail-on-found)] reported by reviewdog 🐶
var _ sdk.Msg = &MsgStakeSupplier{}

sdk "github.com/cosmos/cosmos-sdk/types"
)

const TypeMsgUnstakeSupplier = "unstake_supplier"

var _ sdk.Msg = (*MsgUnstakeSupplier)(nil)
var _ sdk.Msg = &MsgUnstakeSupplier{}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[linter-name (fail-on-found)] reported by reviewdog 🐶
var _ sdk.Msg = &MsgUnstakeSupplier{}

sdk "github.com/cosmos/cosmos-sdk/types"
)

var _ sdk.Msg = &MsgUpdateParams{}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[linter-name (fail-on-found)] reported by reviewdog 🐶
var _ sdk.Msg = &MsgUpdateParams{}

@bryanchriswhite bryanchriswhite changed the title Migration/review/supplier module [Migration review - DO NOT MERGE] Supplier module Feb 14, 2024
@bryanchriswhite bryanchriswhite force-pushed the migration/review/supplier-module branch from cc6b8f9 to 9faa010 Compare February 14, 2024 12:49
@bryanchriswhite bryanchriswhite marked this pull request as ready for review February 14, 2024 12:51
@bryanchriswhite bryanchriswhite mentioned this pull request Feb 14, 2024
11 tasks
@bryanchriswhite bryanchriswhite marked this pull request as draft February 14, 2024 13:02
@bryanchriswhite bryanchriswhite changed the title [Migration review - DO NOT MERGE] Supplier module [Migration review - DO NOT MERGE] Supplier + proof modules Feb 14, 2024
@bryanchriswhite bryanchriswhite removed the request for review from Olshansk February 15, 2024 07:37
@bryanchriswhite bryanchriswhite mentioned this pull request Feb 15, 2024
11 tasks
@bryanchriswhite
Copy link
Contributor Author

Add x/{supplier,proof}/types/types.go:

package types

// This file is in place to declare the package for dynamically generated protobufs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code health Cleans up some code supplier Changes related to the Supplier actor
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants